package com.cqs.learning.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Documented
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.METHOD)
public @interface StopWatcher {

    /**
     * 计时单位
     * 默认毫秒
     *
     * @return
     */
    TimeUnit value() default TimeUnit.MILLISECONDS;

    /**
     * 等级
     *
     */
    Environment environment = Environment.DEVELOPMENT;
}
